package com.meichis.yndms.model;

import com.meichis.mcsappframework.utils.DateUtil;

import java.io.Serializable;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author xmy
 * @title
 * @remake
 * @create 2021-05-31 10:17
 */
public class VstInfo implements Serializable {

    //门店id
    private String TerminalIBMID;
    //门店名称
    private String TerminalName = "";
    //上次拜访时间
    private String BFDate = "";
    //上次拜访人
    private String BFPerson = "";
    // 经度
    private double Lng;
    // 纬度
    private double Lat;
    //拜访时间
    private String IDate;

    public String getTerminalIBMID() {
        return TerminalIBMID;
    }

    public void setTerminalIBMID(String terminalIBMID) {
        TerminalIBMID = terminalIBMID;
    }

    public double getLng() {
        return Lng;
    }

    public void setLng(double lng) {
        Lng = lng;
    }

    public double getLat() {
        return Lat;
    }

    public void setLat(double lat) {
        Lat = lat;
    }

    public String getIDate() {
        return IDate;
    }

    public void setIDate(String IDate) {
        this.IDate = IDate;
    }

    public String getTerminalName() {
        return TerminalName;
    }

    public void setTerminalName(String terminalName) {
        TerminalName = terminalName;
    }

    public String getStrBFDate() {
        try {
            DateFormat  dateFormat = new SimpleDateFormat("yyyy/M/d HH:mm:ss");
            Date date = dateFormat.parse(BFDate);
            SimpleDateFormat format = new SimpleDateFormat(DateUtil.FORMAT_YMDHMS);
            String dateString = format.format(date);
            return dateString;
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return "1900-01-01 00:00:00";
    }

    public String getBFDate() {

        return BFDate;
    }

    public void setBFDate(String BFDate) {
        this.BFDate = BFDate;
    }

    public String getBFPerson() {
        return BFPerson;
    }

    public void setBFPerson(String BFPerson) {
        this.BFPerson = BFPerson;
    }

}
